from launch import LaunchDescription
from launch_ros.actions import Node
# from ament_index_python.packages import get_package_share_directory


def generate_launch_description():
    # pkg_share_dir = get_package_share_directory('cpp_advanced_lane_lines')

    return LaunchDescription([
        Node(
            package='image_pub',
            executable='image_pub',
            parameters=[
                {"image_pub_topic_name": '/image_raw'},
                {"capture_format": '/home/ice/code/GaoRZ_project/img/video1.webm'},
                # {"capture_format": '/home/ice/视频/2024年01月06日 屏幕视频 10时34分02秒.webm'},
                
                # {"capture_format": '0'}
            ]
        ),
 
        # Node(
        #     package='rqt_image_view',
        #     executable='rqt_image_view',
        #     name='rgb_image_viewer',
        #     output='screen',
        #     arguments=['--on-top'],  # 添加命令行参数，使窗口置顶
        #     remappings=[
        #         ('image', '/camera/image_raw'),
        #     ],
        # ),
    ])
